<script setup>
import SonA from './components/SonA.vue'
import SonB from './components/SonB.vue'
import { ref } from 'vue'
import { getCurrentInstance } from 'vue'
const { proxy } = getCurrentInstance()
console.log('proxy', proxy.$num)
const show = ref(true)
</script>
<template>
  <div>
    <button @click="show = !show">销毁sonb</button>
    <SonA></SonA>
    <SonB v-if="show"></SonB>
  </div>
</template>
<style></style>
